package com.shuda.business.channel.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 下游渠道查询DTO类
 */
@Data
@Schema(name = "DownstreamChannelQueryDTO", description = "下游渠道查询DTO")
public class DownstreamChannelQueryDTO {

    @Schema(description = "渠道名称")
    private String channelName;

    @Schema(description = "渠道编码")
    private String channelCode;

    @Schema(description = "渠道类型(api-API推送,crm-租户CRM)")
    private String channelType;

    @Schema(description = "渠道状态(enabled-启用,disabled-禁用)")
    private String channelStatus;

    @Schema(description = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    @Schema(description = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;
}